Page({
  data: {
    schema:[
    ],
    formData:{
    },
    title: '关闭所有页面打开某个页面',
    zh: 'wx.reLaunch',
    remark: '',
    webUrl: 'https://developers.weixin.qq.com/miniprogram/dev/api/route/wx.reLaunch.html',
    apiName: ''
  },
  onLoad() {
    setTimeout(() => {
      this.setData({
        result: wx.getStorageSync('launchpage'),
        apiName: 'wx.reLaunch'
      })
      wx.clearStorageSync('launchpage')
    }, 100);
  },
  goHome() {
    wx.switchTab({
      url: '/page/newAPI/index'
    })
  }
})